package com.j2eefast.bussiness.contract.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>计时工资</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("pay_timing")
public class PayTimingEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    protected Long id;


    //账套id
    @TableField(value = "pay_id")
    @ExcelIgnore
    protected String payId;
    //日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "timing_data")
    @ExcelProperty(value = "日期",index=0)
    protected Date timingData;
    //生产单号
    @TableField(value = "production_number")
    @ExcelProperty(value = "生产单号",index=1)
    protected String productionNumber;
    //部门
    @TableField(value = "department")
    @ExcelProperty(value = "部门",index=2)
    protected String department;
    //员工姓名
    @TableField(value = "name")
    @ExcelProperty(value = "员工姓名",index=3)
    protected String name;
    //工种
    @TableField(value = "work_type")
    @ExcelProperty(value = "工种",index=4)
    protected String workType;
    //计时单位
    @TableField(value = "timing_unit")
    @ExcelProperty(value = "计时单位",index=5)
    protected String timingUnit;
    //计时单价
    @TableField(value = " timing_price")
    @ExcelProperty(value = "计时单价",index=6)
    protected BigDecimal timingPrice;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "timing_time")
    @ExcelProperty(value = "时间",index=7)
    protected Date timingTime;
    //金额
    @TableField(value = " amount")
    @ExcelProperty(value = "金额",index=8)
    protected BigDecimal amount;


    //备注
    @TableField(value = "remark")
    @ExcelProperty(value = "备注",index=9)
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @ExcelProperty(value = "创建日期",index=10)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @ExcelProperty(value = "更新日期",index=11)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    @ExcelProperty(value = "创建人",index=12)
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    @ExcelProperty(value = "更新人",index=13)
    protected String updateBy;

    @Override
    public String toString() {
        return super.toString();
    }
}
